# 周林浙
# 时间：2025/3/7 10:10
sum = [1, 2, 3, 4]
numbers = []

for i in sum:
    for j in sum:
        for k in sum:
            if i != j and j != k and i != k:
                number = 100 * i + 10 * j + k
                numbers.append(number)


print("可以组成的互不相同且无重复数字的三位数有：")
for number in numbers:
    print(number)


print(f"总计 {len(numbers)} 个三位数。")
